<?php
namespace Emos\ListField;

use Emos\Common;

class Icon extends AbstractListField {       
    protected $iconSrc;
    
    var $width = 16;   
    var $needBorder = false;
    
    public function __construct($iconSrc = '/emos/images/item_icon.png') {
        $this->iconSrc = $iconSrc;
    }

    public function getHtml() {    
        return "<img src='{$this->iconSrc}' class='icon'>";        
    }  
}